package com.guohengspace.mq.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 文件对象 实体类
 *
 * @author LEON
 * @since 2020-06-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_files")
@ApiModel(value = "Files对象", description = "")
public class Files extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "uploadId")
    private String uploadId;

//    String bucketName, String key, String uploadId

    /**
     * 文件相对路径，相对于系统配置文件中配置的路径
     */
    @ApiModelProperty(value = "oss bucketName")
    private String bucketName;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "文件md5值")
    private String md5;

    private String description ;
    private String architecture ;
    @TableField(value="os_type")
    private String oSType ;
    private String platform ;

    private String accessKeyId;
    private String accessKeySecret;

    /**
     * 是否已上传
     */
    private boolean isUpload;

    private int progress ;

    private int status ;


}
